
<%@ page import="com.cisite.manager.Manager" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'manager.label', default: 'Manager')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="list-manager" class="content scaffold-list" role="main">
			<g:if test="${flash.message}">
			   <div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					    <g:sortableColumn property="id" title="${message(code: 'manager.id.label', default: 'id')}" />
					    <g:sortableColumn property="userName" title="${message(code: 'manager.userName.label', default: '登录名')}" />
						<g:sortableColumn property="realName" title="${message(code: 'manager.realName.label', default: '姓名')}" />
						<g:sortableColumn property="email" title="${message(code: 'manager.email.label', default: 'email')}" />
						<g:sortableColumn property="qq" title="${message(code: 'manager.qq.label', default: 'qq')}" />
						<g:sortableColumn property="regiesterTime" title="${message(code: 'manager.regiesterTime.label', default: '创建时间')}" />
						<g:sortableColumn property="operation" title="${message(code: 'operation.label', default: '操作')}" />
					</tr>
				</thead>
				<tbody>
				<g:each in="${managerInstanceList}" status="i" var="managerInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
						<td><g:link action="show" id="${managerInstance.id}">${fieldValue(bean: managerInstance, field: "id")}</g:link></td>
						<td>${fieldValue(bean: managerInstance, field: "userName")}</td>
						<td>${fieldValue(bean: managerInstance, field: "realName")}</td>
						<td>${fieldValue(bean: managerInstance, field: "email")}</td>
						<td>${fieldValue(bean: managerInstance, field: "qq")}</td>
						<td><g:formatDate date="${managerInstance.regiesterTime}" /></td>
						<td>
						   <g:link action="edit" id="${managerInstance.id}"><g:message code="default.edit.label" default="修改"/></g:link>|
						   <g:link action="delete" id="${managerInstance.id}"><g:message code="default.delete.label" default="删除"/></g:link>
						</td>
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${managerInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
